package behavioralPattern.state.example02;

public class Red implements LightState{
    @Override
    public void switchToGreen(Context light) {
        System.out.println("红灯 ≠> 绿灯");
    }

    @Override
    public void switchToYellow(Context light) {
        System.out.println("红灯 => 黄灯亮");
    }

    @Override
    public void switchToRed(Context light) {
        System.out.println("当前就是红灯，不用改变");
    }
}
